package com.qzh;

import com.qzh.baseStruct.Graph.Graph;
import com.qzh.baseStruct.Graph.GraphNode;

import java.io.*;
import java.math.BigDecimal;
import java.nio.charset.StandardCharsets;

public class Main {
    public static void main(String[] args) {
        Graph g = new Graph(1L);
        g.addLine(1L,2L, BigDecimal.valueOf(5), GraphNode.LineType.normal);
        g.addLine(2L,3L, BigDecimal.valueOf(4), GraphNode.LineType.normal);
        g.addLine(3L,4L, BigDecimal.valueOf(5), GraphNode.LineType.normal);
        g.addLine(2L,3L, BigDecimal.valueOf(4), GraphNode.LineType.normal);
        g.addLine(4L,1L,BigDecimal.valueOf(4), GraphNode.LineType.normal);
        g.addLine(1L,3L, BigDecimal.valueOf(10), GraphNode.LineType.normal);
        g.addLine(4L,5L,BigDecimal.valueOf(2), GraphNode.LineType.normal);
        g.addLine(5L,6L,BigDecimal.valueOf(1), GraphNode.LineType.normal);
        g.addLine(6L, 1L,BigDecimal.valueOf(10), GraphNode.LineType.normal);
        g.leastWeightsFromNodes(1L,3L, Graph.LeastPrintMethod.onlyNumber);


    try{
        InputStream in = new BufferedInputStream(new FileInputStream("a.txt"));

    }catch(Exception e){
    e.getMessage();
    }


    }
}